﻿

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;


public class BLL_siconide_baking
{
    public BLL_siconide_baking()
    {

    }

    public List<siconide_baking> select(int ID)
    {
        DAL_siconide_baking dal = new DAL_siconide_baking();
        return dal.select(ID);
    }

    public List<siconide_baking> selectAll()
    {
        DAL_siconide_baking dal = new DAL_siconide_baking();
        return dal.selectAll();
    }

    public DataTable selectAllForGrid()
    {
        DAL_siconide_baking dal = new DAL_siconide_baking();
        return dal.selectAllForGrid();
    }
    public bool insert(siconide_baking tbl)
    {
        DAL_siconide_baking dal = new DAL_siconide_baking();
        int i = 0;
        i = dal.insert(
            tbl.Baking_Date
, tbl.Start_Time
, tbl.End_Time
, tbl.Drying_temp
, tbl.Operator
, tbl.Remark
, tbl.CREATED_BY
, tbl.CREATED_DATE
        );

        return Convert.ToBoolean(i);
    }


    public bool update(siconide_baking tbl)
    {
        DAL_siconide_baking dal = new DAL_siconide_baking();
        int i = 0;
        i = dal.update(
            tbl.ID
, tbl.Baking_Date
, tbl.Start_Time
, tbl.End_Time
, tbl.Drying_temp
, tbl.Operator
, tbl.Remark
, tbl.UPDATED_BY
, tbl.UPDATED_DATE
            );

        return Convert.ToBoolean(i);
    }


    public bool delete(siconide_baking tbl)
    {
        DAL_siconide_baking dal = new DAL_siconide_baking();
        int i = 0;
        i = dal.delete(
                tbl.ID
        );

        return Convert.ToBoolean(i);
    }


}

